﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BioModel
{
    [DataContract]
    public class Forestilling
    {
        #region Attributter
        [DataMember]
        private int forestillingId;

        [DataMember]
        private DateTime fremvisningsDato;

        [DataMember]
        private string start;

        [DataMember]
        private string slut;

        [DataMember]
        private int film;

        [DataMember]
        private int sal;

        #endregion

        #region Konstruktør
        public Forestilling()
        {
        }

        public Forestilling(int forestillingId, DateTime fremvisningsDato, string start, string slut, int film, int sal)
        {
            this.forestillingId = forestillingId;
            this.fremvisningsDato = fremvisningsDato;
            this.start = start;
            this.slut = slut;
            this.film = film;
            this.sal = sal;
        }
        #endregion

        #region Set og Get
        [DataMember]
        public int ForestillingId
        {
            get { return forestillingId; }
            set { forestillingId = value; }
        }

        [DataMember]
        public string Start
        {
            get { return start; }
            set { start = value; }
        }

        [DataMember]
        public DateTime FremvisningsDato
        {
            get { return fremvisningsDato; }
            set { fremvisningsDato = value; }
        }

        [DataMember]
        public string Slut
        {
            get { return slut; }
            set { slut = value; }
        }

        [DataMember]
        public int Film
        {
            get { return film; }
            set { film = value; }
        }

        [DataMember]
        public int Sal
        {
            get { return sal; }
            set { sal = value; }
        }
        #endregion
    }
}
